<!DOCTYPE html>
<html lang="en">
<head>
     <script src="/static/header.js"></script>

</head>
<body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand loadLink" href="/systemctl/product?list=1&user={{ user }}">nancal</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
             <ul class="nav navbar-nav navbar-right">
                <li><a class="btn-group-sm" href="#">{{ user }}</a></li>
                <li><a class="btn-group-sm" href="/login/?close=1">退出</a></li>
            </ul>

        </div>
    </div>
</nav>
<div class="container">
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
            <div class="page-header">
                <h1>修改信息</h1>
            </div>
            <form class="form-horizontal" action="/systemctl/editproduct/?id={{ ret.id }}&user={{ user }}&list={{ list }}" method="post">
                <div class="form-group" style="margin-bottom: 10px;">
                     <label for="press_user" class="col-sm-3 control-label">机器名</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_user" name="name" placeholder="机器名" value="{{ ret.name }}" >
                    </div>
                    <label for="cmd1" class="col-sm-3 control-label">SN码</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_sn_code" name="sn_code" placeholder="SN码" value="{{ ret.sn_code }}">
                    </div>
                    <label for="cmd1" class="col-sm-3 control-label">CPU</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_cpu" name="cpu" placeholder="CPU" value="{{ ret.cpu }}">
                    </div>
                    <label for="cmd1" class="col-sm-3 control-label">内存</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_memory" name="memory" placeholder="内存" value="{{ ret.memory }}">
                    </div>
                    <label for="cmd1" class="col-sm-3 control-label">硬盘</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_disk" name="disk" placeholder="硬盘" value="{{ ret.disk }}">
                    </div>
                    <label for="cmd1" class="col-sm-3 control-label">操作系统</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_system" name="system" placeholder="操作系统" value="{{ ret.system }}">
                    </div>
                    <label for="cmd1" class="col-sm-3 control-label">用户名</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_username" name="username" placeholder="用户名" value="{{ ret.username }}">
                    </div>
                    <label for="cmd1" class="col-sm-3 control-label">密码</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_pwd" name="pwd" placeholder="密码" value="{{ ret.pwd }}">
                    </div>
                    <label for="cmd1" class="col-sm-3 control-label">IP</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_outer_ip" name="outer_ip" placeholder="IP" value="{{ ret.outer_ip }}">
                    </div>

                    <label for="press_emil" class="col-sm-3 control-label">备注</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_emil" name="remark" placeholder="备注" value="{{ ret.remark }}">
                    </div>

                </div>

                <div class="form-group">
                    <div class="col-sm-offset-10 col-sm-9">
                        <button type="submit loadLink" class="btn btn-default">确认修改</button>
                        <P>{{ error_msg  }}</P>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
    <script src="/static/loadLink.js"></script>
</body>
</html>